#ifndef _RTC_TIME_H_
#define _RTC_TIME_H_
#include "stm32f10x.h"
#include <time.h>

//#define RTCClockOutput_Enable


struct tm Time_ConvUnixToCalendar(time_t t);
time_t Time_ConvCalendarToUnix(struct tm t);
time_t Time_GetUnixTime(void);
struct tm Time_GetCalendarTime(void);
void Time_SetUnixTime(time_t);
void Time_SetCalendarTime(struct tm t);
uint8_t RTC_HSE_Configuration(void);
u8 RTC_LSE_Configuration(void);
u8 RTC_Config(void);
void ReadAllBkp(void);
void WriteAllBkp(void);
extern uint32_t NowTime ;
extern struct tm date_time_Now;
extern struct tm date_time_Set;
extern uint32_t todayMin ;

#endif



